import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from "@/views/reading/HomeView.vue";
import TaskView from "@/views/reading/TaskView.vue";
import MineView from "@/views/reading/MineView.vue";
import BookshelfView from "@/views/reading/BookshelfView.vue";
import ChatView from "@/views/reading/ChatView.vue";
import Noveldetails from "@/views/reading/Noveldetails.vue";
import SearchView from '../views/reading/SearchView.vue'
import shellRecord from "@/views/reading/ShellRecord.vue";
import NovelContents from "@/views/reading/NovelContents.vue";
import Writereview from "@/views/reading/Writereview.vue";
import userInfo from "@/views/reading/userInfo.vue";
import updatePhone from "@/views/reading/updatePhone.vue";
import help from "@/views/reading/help.vue";
import login from "@/views/Login/login.vue";
import login1 from "@/views/Login/login1.vue";
import login2 from "@/views/Login/login2.vue";
import login4 from "@/views/Login/login4.vue";
import login3 from "@/views/Login/login3.vue";
import userAgreement  from "@/views/Login/UserAgreement.vue";
import updateEmail from "@/views/reading/updateEmail.vue";
import friend from "@/views/reading/friend.vue";
import Xs1View from "@/views/reading/Xs1View.vue";
import Recharge from "@/views/pay/Recharge.vue";
import NovelReply from "@/views/reading/NovelReply.vue";
import historyView from "@/views/reading/historyView.vue";
import WechatPay from "@/views/pay/WechatPay.vue";
import Chenggong from "@/views/pay/Chenggong.vue";
import Bookreview from "@/views/reading/Bookreview.vue";
import NovelReplyUser from "@/views/reading/NovelReplyUser.vue";
import Consumption from "@/views/reading/Consumption.vue";
import BillView from "@/views/reading/BillView.vue";
import ExchangeGlod from "@/views/reading/ExchangeGlod.vue";


Vue.use(VueRouter)


const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    component: login,
    name: 'login',
    meta: { title: '选择登录页面' }
  },
  {
    path: '/login1',
    component: login1,
    name: 'login1',
    meta: { title: '账号密码登录页面' }
  },
  {
    path: '/login2',
    component: login2,
    name: 'login2',
    meta: { title: '手机验证码登录页面' }
  },
  {
    path: '/login3',
    component: login3,
    name: 'login3',
    meta: { title: '邮箱登录页面' }
  },
  {
    path: '/login4',
    component: login4,
    name: 'login4',
    meta: { title: '注册页面' }
  },
  {
    path: '/userInfo',
    component: userInfo,
    name: 'userInfo',
    meta: { title: '用户详情' }
  },
  {
    path: '/updatePhone',
    component: updatePhone,
    name: 'updatePhone',
    meta: { title: '修改手机号页面' }
  },
  {
    path: '/updateEmail',
    component: updateEmail,
    name: 'updateEmail',
    meta: { title: '修改邮箱页面' }
  },
  {
    path: '/help',
    component: help,
    name: 'help',
    meta: { title: '帮助页面' }
  },
  {
    path: '/userAgreement',
    component: userAgreement,
    name: 'userAgreement',
    meta: { title: '用户协议页面' }
  },
  {
    path: '/friend',
    component: friend,
    name: 'friend',
    meta: { title: '朋友页面' }
  },
  {
    path: '/task',
    name: 'task',
    component: TaskView
  },
  {
    path: '/mine',
    name: 'mine',
    component: MineView
  },
  {
    path: '/noveldetails',
    name: 'noveldetails',
    component: Noveldetails
  },
  {
    path: '/novelcontents',
    name: 'novelcontents',
    component: NovelContents
  },
  {
    path: '/writereview',
    name: 'writereview',
    component: Writereview
  },
  {
    path: '/bookshelf',
    name: 'bookshelf',
    component: BookshelfView
  },
  {
    path: '/novelReply',
    name: 'novelReply',
    component: NovelReply
  },
  {
    path: '/chat',
    name: 'chat',
    component: ChatView
  },
  {
    path: '/search',
    name: 'search',
    component: SearchView
  },
  {
    path: '/shellRecord',
    name: 'shellRecord',
    component: shellRecord
  },
  {
    path: '/xs1',
    name: 'xs1',
    component: Xs1View
  },
  {
    path: '/recharge',
    name: 'recharge',
    component: Recharge
  },
  {
    path: '/history',
    name: 'history',
    component: historyView
  },
  {
    path: '/wechatPay',
    name: 'WechatPay',
    component: WechatPay
  },
  {
    path: '/chengGong',
    name: 'Chenggong',
    component: Chenggong
  },
  {
    path: '/bookreview',
    name: 'bookreview',
    component: Bookreview
  },

  {
    path: '/novelreplyuser',
    name: 'novelreplyuser',
    component: NovelReplyUser
  },

  {
    path: '/consumption',
    name: 'Consumption',
    component: Consumption
  },

  {
    path: '/bill',
    name: 'BillView',
    component: BillView
  },

  {
    path: '/exchangeGlod',
    name: 'exchangeGlod',
    component: ExchangeGlod
  },
]

const router = new VueRouter({
  routes
})

export default router
